﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Model
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("t_StocktakingPlan")]
    public partial class t_StocktakingPlan
    {
        public t_StocktakingPlan()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:计划单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BillSN { get; set; }

        /// <summary>
        /// Desc:计划名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Name { get; set; }

        /// <summary>
        /// Desc:盘点计划开始时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? BeginDate { get; set; }

        /// <summary>
        /// Desc:盘点计划结束时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// Desc:库房Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

        /// <summary>
        /// Desc:库房
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:库区Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AreaId { get; set; }

        /// <summary>
        /// Desc:库区	
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:状态：0-新建;10-已审核;20-已生成盘点单；30-取消作废；
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

        /// <summary>
        /// Desc:盘点计划：10-普通抽盘；20-临时抽盘；30-紧急抽盘；40-货主抽盘；50-库区抽盘；	
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? PlanType { get; set; }

        /// <summary>
        /// Desc:重复盘点：0-全部盘点；10-不盘30天已盘点的库区；20-不盘15天已盘点的库区；30-不盘7天内已盘点的库区；
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Repeat { get; set; }

        /// <summary>
        /// Desc:盘点工具：10-机器盘点；20-PDA；30-纸质；40-自定义；	
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Means { get; set; }

        /// <summary>
        /// Desc:单盘最大库位数	
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaxLocationCount { get; set; }

        /// <summary>
        /// Desc:盘点粒度：0-全部盘点；10-抽查盘点（5%库位）；20-抽查盘点（25%库位）；30-抽查盘点（50%库位）
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Granularity { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:货品ABC流通选项：0-A;1-B;2-C；可多选，逗号隔开
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? GoodsABC { get; set; }

        /// <summary>
        /// Desc:指定货品Id,多个逗号隔开
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? GoodsIds { get; set; }

        /// <summary>
        /// Desc:指定货品名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? GoodsNames { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

    }
}
